package org.csu.lestore.api.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.csu.lestore.api.common.CommonResponse;
import org.csu.lestore.api.entity.Addr;

public interface AddrService {
    CommonResponse<Addr> getDefaultAddrByUserId(int userId);
    CommonResponse<Addr> setDefaultAddr(int userId,int addrId);
    CommonResponse<Addr> getAddr(int addrId);
    CommonResponse<IPage<Addr>> getAddrListInPage(int curPage, int size);
    CommonResponse<IPage<Addr>> getAddrListInPage(int curPage, int size, int userId);
    CommonResponse<Addr> updateAddr(Addr addr);
    CommonResponse<Addr> insertAddr(Addr addr);
    CommonResponse<Addr> deleteAddr(int addrId);
}
